package com.timi_licai.timi_licai_account.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * 自定义ListView，解决在ScrollView中ListView显示不全的问题
 * Created by LGH on 2015/3/16.
 */
public class FullListView extends ListView {
    public FullListView (Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public FullListView (Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec) {
        heightMeasureSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 1, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }
}
